package com.neuedu.controller.registration;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.Department;
import com.neuedu.service.registration.DepartmentService;

@RestController
public class DepartmentController {
	@Autowired
	private DepartmentService departmentService;
//	查询所有科室
	@RequestMapping("/getAllDeptList")
	public List<Department> getAllDeptList() {
		return departmentService.getAllDeptList();
	}
}
